cmake_minimum_required(VERSION 3.10)

# 项目名称
project(RKNNExample)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 添加包含目录
include_directories(
    ${PROJECT_SOURCE_DIR}/include
    /workspace/gear-train-py/3rdparty/librknn_api/include
    /workspace/gear-train-py/geartrain/backends/backend_cpp/rknn/include
    /workspace/gear-train-py/geartrain/backends/backend_cpp/base/include
    # 添加其他必要的头文件路径
)


# 添加可执行文件
add_executable(RKNNExample main.cpp)

# 链接RKNN API库
target_link_libraries(RKNNExample /workspace/gear-train-py/geartrain/backends/backend_cpp/rknn/lib/libgear_backend.a)
target_link_libraries(RKNNExample /workspace/rknn-toolkit2-master/rknpu2/runtime/Linux/librknn_api/aarch64/librknnrt.so)
